<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import Joomla modellist library
jimport('joomla.application.component.modelform');

/**
 * Cart Model
 */
class ProductModelCheckout extends JModelForm
{
	/**
	 * Method to get the record form.
	 *
	 * @param       array   $data           Data for the form.
	 * @param       boolean $loadData       True if the form is to load its own data (default case), false if not.
	 * @return      mixed   A JForm object on success, false on failure
	 * @since       2.5
	 */
	public function getForm($data = array(), $loadData = true) {
		// Get the form.
		$form = $this->loadForm('com_product.checkout', 'checkout',
				array('load_data' => $loadData));
		if (empty($form)) {
			return false;
		}
		return $form;
	}
}